package com.guoqing.example.controller;

import com.guoqing.example.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName MyController
 * @Description TODO
 * @Author ZhangGuoQing
 * @Date 2020/8/16/0016 22:04
 */
@Controller
public class MyController {
    @Autowired
    private UserMapper userMapper;

    @RequestMapping("/toLogin")
    public String msg(Model model){
        model.addAttribute("msg", "hello msg！");
        return "login";
    }
}
